/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package test;

import java.util.HashMap;
import java.util.Map;
import java.util.Random;

/**
 *
 * @author Luis A Riveros
 */
public class Normal {

    /**
     * 
     * @param args
     */
    public static void main(String[] args) {
        int num = 5000000;
        long ini;
        Random r = new Random();
        Map<String, Double> map = new HashMap<String, Double>();
        ini = System.currentTimeMillis();
        for (int i = 0; i < num; i++) {
            map.put(String.valueOf(i), r.nextDouble());
        }
        Double d;
        for (int i = 0; i < num; i++) {
            d = map.get(String.valueOf(i));
        }
        System.out.println("Total: " + (System.currentTimeMillis() - ini));
    }
}
